package top.yxf.docker.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * 订单
 *
 * @author xs.wu
 * @className OrderController
 * @date 2023/2/22 15:50
 */
@RequestMapping("/order")
@RestController
public class OrderController {

    Logger logger = LoggerFactory.getLogger(OrderController.class);

    @GetMapping("/index")
    public String index() {
        logger.info("order docker docker jenkins jenkins jenkins jenkins ~~~");
        logger.info("order docker docker jenkins jenkins jenkins jenkins ~~~");
        logger.info("order docker docker jenkins jenkins jenkins jenkins ~~~");
        return "order order index jenkins jenkins jenkins jenkins ~~~" + UUID.randomUUID();
    }


    @GetMapping("/docker")
    public String docker() {
        logger.info("order docker docker jenkins jenkins jenkins jenkins order docker docker jenkins jenkins jenkins jenkins ~~~");

        return "order docker docker docker docker ~~~" + UUID.randomUUID();

    }

    @GetMapping("/jenkins")
    public String jenkins() {
        return "hello jenkins JENKINS ~~~" + UUID.randomUUID();
    }

}
